package com.erp.mapper;

import com.erp.entity.UserRole;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author pyj
 * @since 2020-11-07
 */
@Mapper
public interface UserRoleMapper {

    UserRole findUserRoleByName(String name);

    List<UserRole> getAll();

    int add(UserRole userRole);

    int delete(Integer id);

    int update(UserRole userRole);
    
    int deleteRolesByUserId(Integer uid);
}
